<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>贪吃蛇</title>
</head>

<style type="text/css">
    .map{
        width: 800px;
        height: 600px;
        background-color: #666;
        position: relative;
    }
</style>


<body>

<div class="map"></div>
<script src="food.js" ></script>
<script src="snake.js"></script>
<script src="game.js"></script>
<script>


    var gm=new Game(document.querySelector(".map"));
    gm.init();

  

</script>
</body>
</html>